package com.puppet.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/*
* 自动消费：工作队列监听器
* */
@Component
@Slf4j
public class WorkQueueListener2 {

    @RabbitListener(queues = "work.queue")
    public void workQueue2(String message){
        log.info("消费者2接收到的消息：{}",message);
    }
}
